﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.Administration;

namespace EnhancedSolutions.Admin.BramNuyts.EnhancedSolutions
{
    public partial class SolutionsCheckBoxList : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SPSolutionCollection cSolutions = SPFarm.Local.Solutions;
            if (!IsPostBack)
            {
                SolutionCheckBoxList.DataSource = cSolutions;
                SolutionCheckBoxList.DataTextField = "Name";
                SolutionCheckBoxList.DataBind();
            }
        }

        public ListItemCollection Items
        {
            get
            {
                return SolutionCheckBoxList.Items;
            }
        }
    }
}
